package com.iot.entity;


import com.baomidou.mybatisplus.annotations.TableField;

import java.io.Serializable;

/**
 * <p>
 * 城市
 * </p>
 *
 * @author Dermot123
 * @since 2024-02-26
 */
public class Query implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据总量
     */
    private Integer total;
    /**
     * 查询类型
     */
    private String type;
    /**
     * 查询id值
     */
    private Integer id;
    /**
     * 最小id
     */
    @TableField("min_id")
    private Integer minId;
    /**
     * 最大id
     */
    @TableField("max_id")
    private Integer maxId;
    /**
     * 数据最大数
     */
    private Integer limit;
    /**
     * 查询time值
     */
    private Integer time;
    /**
     * 数据最小time
     */
    @TableField("min_time")
    private Long minTime;
    /**
     * 数据最大time
     */
    @TableField("max_time")
    private Long maxTime;


    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMinId() {
        return minId;
    }

    public void setMinId(Integer minId) {
        this.minId = minId;
    }

    public Integer getMaxId() {
        return maxId;
    }

    public void setMaxId(Integer maxId) {
        this.maxId = maxId;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getTime() {
        return time;
    }

    public void setTime(Integer time) {
        this.time = time;
    }

    public Long getMinTime() {
        return minTime;
    }

    public void setMinTime(Long minTime) {
        this.minTime = minTime;
    }

    public Long getMaxTime() {
        return maxTime;
    }

    public void setMaxTime(Long maxTime) {
        this.maxTime = maxTime;
    }

    @Override
    public String toString() {
        return "Query{" +
        ", total=" + total +
        ", type=" + type +
        ", id=" + id +
        ", minId=" + minId +
        ", maxId=" + maxId +
        ", limit=" + limit +
        ", time=" + time +
        ", minTime=" + minTime +
        ", maxTime=" + maxTime +
        "}";
    }
}
